<!--[form:dsler]-->
<div class="field"> 
    <label for="dsler_email" accesskey="E"><span class="accesskey">E</span>mail</label> <span class="require">*</span> <br/>
    <%= text_field 'dsler', 'email', :class=>'text_field' -%>
    <span id="email_validation_msg" class="formError"><%= error_message_on(:dsler, :email) -%></span>
    <div class="notice">e.g. myname@example.com. This will be your username and sign-in.</div>
</div> <!-- close field-->
<%= observe_field 'dsler_email', :update => :email_validation_msg,
:url => {:controller => 'dslers', :action=> 'validate_email'},
         :with => "'dsler_email='+escape($F('dsler_email'))" -%>
         
<div class="field"> 
    <label for="dsler_name" accesskey="N">Display <span class="accesskey">N</span>ame</label> <span class="require">*</span> <br/>
    <%= text_field 'dsler', 'name', :class=>'text_field' -%>
    <span id="name_validation_msg" class="formError"><%= error_message_on(:dsler, :name) -%></span>
    <div class="notice">This will be your display name of your posted articles or resources.</div>
    <%= observe_field 'dsler_name', :update => :name_validation_msg,
:url => {:controller => 'dslers', :action=> 'validate_name'},
         :with => "'dsler_name='+escape($F('dsler_name'))" -%>
</div> <!-- close field-->

<div class="field"> 
    <label for="dsler_password" accesskey="P">Choose a <span class="accesskey">P</span>assword</label> <span class="require">*</span> <br/>
    <%= password_field 'dsler', 'password', :class=>'password_field' -%>
    <span id="password_validation_msg" class="formError"><%= error_message_on(:dsler, :password) -%></span>
</div> <!-- close field-->

<div class="field"> 
    <label for="dsler_verify_password" accesskey="R"><span class="accesskey">R</span>e-enter password</label> <span class="require">*</span> <br/>
    <%= password_field 'dsler', 'verify_password', :class=>'password_field' -%>
    <span id="verify_password_validation_msg" class="formError"><%= error_message_on(:dsler, :verify_password) -%></span>
</div> <!-- close field-->
<script type="text/javascript">
//<![CDATA[
    new Form.Element.EventObserver('dsler_verify_password', function(element, value) { 
    if($F('dsler_password') != element.value) { 
        new Validate().failed('dsler','verify_password', 'password mismatch, please verify your input.'); 
      }
     else {
        new Validate().succeed('dsler','verify_password');
     }
    });
//]]>
</script>

<!--[eoform:dsler]-->

